<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript">
    /**
     * 查看操作日志详情
     */
    function detailInfo(id) {
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/opLog/getOpLogObject.sjson",
            data: {opId: id},
            success: function (result) {
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                /**设置展示信息**/
                $("#d_opDesc").html(data.opDesc);
                $("#d_userTrueName").html(data.userTrueName);
                $("#d_ip").html(data.ip);
                if(data.opDate!=""&&data.opDate!=undefined){
                    $("#d_opDate").html(new Date(data.opDate).Format("yyyy-MM-dd hh:mm:ss"));
                }
                $("#d_opParams").html(data.opParams);
            }
        });
    }
</script>
<!--详情模态框（Modal） -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">操作日志详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">操作功能:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_opDesc"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">操作人:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_userTrueName"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">IP:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_ip"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">操作时间:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_opDate"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">操作参数:</td><td  class="toleft_td">&nbsp;&nbsp;<span id="d_opParams"></span></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>